package com.lucenly.spell.adapter

import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.lucenly.spell.R
import com.next.easynavigation.view.EasyNavigationBar

class MessageAdapter : RecyclerView.Adapter<MessageAdapter.ItemHolder>{
    var context: Context? = null
    var data:List<String> = arrayListOf()
    constructor(data: List<String>, context: Context){
        this.data = data
        this.context = context
    }


    class ItemHolder(view: View) : RecyclerView.ViewHolder(view) {

    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemHolder {
        val view =
            LayoutInflater.from(parent.context).inflate(R.layout.item_message, parent, false)
        return ItemHolder(view)
    }

    override fun getItemCount(): Int {
        return data.size
    }

    override fun onBindViewHolder(holder: ItemHolder, position: Int) {
    }
}